package test.java.com.project;

public class SmallStudent extends Student{
    public static void main(String args[]){
        SmallStudent st=new SmallStudent();
        Object obj=new SmallStudent();
        System.out.println(st.getEat());
        if(obj instanceof Person){
            System.out.println("对象归属");
        }
    }

    public String getEat(){
        return this.eat();
    }
    //测试 instanceof

}
